package com.ztesoft.web.common.db.dao.mapper;

import com.ztesoft.web.common.db.arg.DbLinkInstanceArg;
import com.ztesoft.web.common.db.po.DbLinkInstancePO;
import com.ztesoft.web.common.db.po.DbNodePO;
import java.util.*;
import java.math.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IDbLinkInstanceMapper {
	 List<DbNodePO> queryAllForTree();
		
    List<Integer> countByArg(DbLinkInstanceArg arg);

    int deleteByArg(DbLinkInstanceArg arg);

    List<DbLinkInstancePO> selectByArg(DbLinkInstanceArg arg);

    int updateByArgSelective(@Param("record") DbLinkInstancePO record,
            @Param("arg") DbLinkInstanceArg arg);

    int updateByArg(@Param("record") DbLinkInstancePO record,
            @Param("arg") DbLinkInstanceArg arg);

    List<DbLinkInstancePO> selectByArgAndPage(DbLinkInstanceArg arg, RowBounds rowBound);

    int insert(DbLinkInstancePO record);

    int insertSelective(DbLinkInstancePO record);

    int insertBatch(@Param("list") List<DbLinkInstancePO> records);

    int deleteByPrimaryKey(Integer id);

    DbLinkInstancePO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DbLinkInstancePO record);

    int updateByPrimaryKey(DbLinkInstancePO record);
}